#ifndef QMLXMPPCLIENT_H
#define QMLXMPPCLIENT_H

#include <QObject>

//#include "MyXmppClient.h"

class QMLXmppClient : public QObject
{
    Q_OBJECT
    Q_PROPERTY( QString jidLastMsg READ getJidLastMsg NOTIFY msgReceived )

    static QMLXmppClient* instance;

    QString jidLastMessage;

public:
    explicit QMLXmppClient(QObject *parent = 0);

    static QMLXmppClient* getInstance() { return QMLXmppClient::instance; }

    void emitMsgRecv(const QString &jid ) { jidLastMessage = jid; emit msgReceived(); }
    QString getJidLastMsg() const { return jidLastMessage; }
    
signals:
    void changeMyJid();
    void unreadMessages();
    void msgReceived();
    
public slots:
    
};

#endif // QMLXMPPCLIENT_H
